count = 0
while count < 10:
  count = count + 1
  print(count)
else:
  print('EOF')

a = ['apple', 'orange', 'banana', 'a', 'b', 'c']
for x in a:
  for y in range(5):
    if y == 2:
      break
    else:
      print(x, y)
else:
  print('end')

# 重复指定次数代码 range(0,10) 生成0-9的序列
for x in range(0,10,2):
  print(x, end=' | ')

for i in range(1, 10, 2):
  print(i, end=" | ")
print('\n')
b = a[0:len(a):2]
print(b)


